package com.wg.dome.entity.config;

import com.wg.db.annotation.EntityField;
import com.wg.db.annotation.EntityTable;
import com.wg.db.schema.AccessLevel;

import java.io.Serializable;

/**
 * 商品表
 */
@EntityTable(tableName = "static_init_shop", accessLevel = AccessLevel.ReadOnly)
public class InitShopEntity implements Serializable {

    @EntityField(isKey = true)
    private int id;

    /**
     * 道具Id
     */
    @EntityField(fieldName = "item_id")
    private int itemId;

    /**
     * 道具类型 1.消耗品 2.装备 3.英雄
     */
    @EntityField(fieldName = "item_type")
    private byte itemType;

    /**
     * 货币类型 1:灵石购买  2:仙缘购买
     */
    @EntityField(fieldName = "gold_type")
    private int goldType;

    /**
     * 价格
     */
    @EntityField
    private int price;

    /**
     * 一次性购买最大数量
     */
    @EntityField(fieldName = "max_count")
    private int maxCount;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public int getGoldType() {
        return goldType;
    }

    public void setGoldType(int goldType) {
        this.goldType = goldType;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getMaxCount() {
        return maxCount;
    }

    public void setMaxCount(int maxCount) {
        this.maxCount = maxCount;
    }

    public byte getItemType() {
        return itemType;
    }

    public void setItemType(byte itemType) {
        this.itemType = itemType;
    }
}
